/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.gui.mvc.model.testbed;

import org.testis.gui.mvc.model.AbstractModel;
import org.testis.gui.mvc.controller.testbed.*;
import java.awt.event.MouseEvent;

/**
 *
 * @author selcuk
 */
public class TbedPopupModel extends AbstractModel {

    private Boolean m_addNewDeviceVisibility = false;
    private Boolean m_editDeviceVisibility = false;
    private Boolean m_deleteDeviceVisibility = false;
    private Boolean m_addNewFirmwareVisibility = false;
    private Boolean m_editFirmwareVisibility = false;
    private Boolean m_deleteFirmwareVisibility = false;
    private Boolean m_addNewTestPcVisibility = false;
    private Boolean m_editTestPcVisibility = false;
    private Boolean m_deleteTestPcVisibility = false;
    private Boolean m_addNewDeviceGroupVisibility = false;
    private Boolean m_editDeviceGroupVisibility = false;
    private Boolean m_deleteDeviceGroupVisibility = false;
    private Boolean m_addDeviceGroupDetailVisibility = false;
    private Boolean m_editDeviceGroupDetailVisibility = false;
    private Boolean m_deleteDeviceGroupDetailVisibility = false;
    private Boolean m_addNewDutVisibility = false;
    private Boolean m_editDutVisibility = false;
    private Boolean m_deleteDutVisibility = false;
    private Boolean m_addNewNetworkAdapterVisibility = false;
    private Boolean m_editNetworkAdapterVisibility = false;
    private Boolean m_deleteNetworkAdapterVisibility = false;
    private Boolean m_AddSerialVisibility = false;
    private Boolean m_EditSerialVisibility = false;
    private Boolean m_DeleteSerialVisibility = false;
    private Boolean m_AddDirectSerialVisibility = false;
    private Boolean m_EditDirectSerialVisibility = false;
    private Boolean m_DeleteDirectSerialVisibility = false;
    private Boolean m_AddNetworkSerialVisibility = false;
    private Boolean m_EditNetworkSerialVisibility = false;
    private Boolean m_DeleteNetworkSerialVisibility = false;

    public TbedPopupModel() {
        super();
    }

    public void setOpenMenu(MouseEvent event) {
        if (event == null) {
            return;
        }
        firePropertyChange(TbedPopupController.OPEN_POPUP_MENU, null, event);
    }

    /**
     * @return the m_addNewDeviceVisibility
     */
    public Boolean getAddNewDeviceVisibility() {
        return m_addNewDeviceVisibility;
    }

    /**
     * @param m_addNewDeviceVisibility the m_addNewDeviceVisibility to set
     */
    public void setAddNewDeviceVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_addNewDeviceVisibility;
        this.m_addNewDeviceVisibility = val;
        firePropertyChange(TbedPopupController.POPUP_MENU_ADD_DEVICE_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_editDeviceVisibility
     */
    public Boolean getEditDeviceVisibility() {
        return m_editDeviceVisibility;
    }

    /**
     * @param m_editDeviceVisibility the m_editDeviceVisibility to set
     */
    public void setEditDeviceVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_editDeviceVisibility;
        this.m_editDeviceVisibility = val;
        firePropertyChange(TbedPopupController.POPUP_MENU_EDIT_DEVICE_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_deleteDeviceVisibility
     */
    public Boolean getDeleteDeviceVisibility() {
        return m_deleteDeviceVisibility;
    }

    /**
     * @param m_deleteDeviceVisibility the m_deleteDeviceVisibility to set
     */
    public void setDeleteDeviceVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_deleteDeviceVisibility;
        this.m_deleteDeviceVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_DEVICE_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_addNewFirmwareVisibility
     */
    public Boolean getAddNewFirmwareVisibility() {
        return m_addNewFirmwareVisibility;
    }

    /**
     * @param m_addNewFirmwareVisibility the m_addNewFirmwareVisibility to set
     */
    public void setAddNewFirmwareVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_addNewFirmwareVisibility;
        this.m_addNewFirmwareVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_FW_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_editFirmwareVisibility
     */
    public Boolean getEditFirmwareVisibility() {
        return m_editFirmwareVisibility;
    }

    /**
     * @param m_editFirmwareVisibility the m_editFirmwareVisibility to set
     */
    public void setEditFirmwareVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_editFirmwareVisibility;
        this.m_editFirmwareVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_FW_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_deleteFirmwareVisibility
     */
    public Boolean getDeleteFirmwareVisibility() {
        return m_deleteFirmwareVisibility;
    }

    /**
     * @param m_deleteFirmwareVisibility the m_deleteFirmwareVisibility to set
     */
    public void setDeleteFirmwareVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_deleteFirmwareVisibility;
        this.m_deleteFirmwareVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_FW_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_addNewTestPcVisibility
     */
    public Boolean getAddNewTestPcVisibility() {
        return m_addNewTestPcVisibility;
    }

    /**
     * @param val the m_addNewTestPcVisibility to set
     */
    public void setAddNewTestPcVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_addNewTestPcVisibility;
        this.m_addNewTestPcVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_TESTPC_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_editTestPcVisibility
     */
    public Boolean getEditTestPcVisibility() {
        return m_editTestPcVisibility;
    }

    /**
     * @param val the m_editTestPcVisibility to set
     */
    public void setEditTestPcVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_editTestPcVisibility;
        this.m_editTestPcVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_TESTPC_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_deleteTestPcVisibility
     */
    public Boolean getDeleteTestPcVisibility() {
        return m_deleteTestPcVisibility;
    }

    /**
     * @param val the m_deleteTestPcVisibility to set
     */
    public void setDeleteTestPcVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_deleteTestPcVisibility;
        this.m_deleteTestPcVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_TESTPC_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_addNewDeviceGroupVisibility
     */
    public Boolean getAddNewDeviceGroupVisibility() {
        return m_addNewDeviceGroupVisibility;
    }

    /**
     * @param val the m_addNewDeviceGroupVisibility to set
     */
    public void setAddNewDeviceGroupVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_addNewDeviceGroupVisibility;
        this.m_addNewDeviceGroupVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_DEVICEGROUP_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_editDeviceGroupVisibility
     */
    public Boolean getEditDeviceGroupVisibility() {
        return m_editDeviceGroupVisibility;
    }

    /**
     * @param val the m_editDeviceGroupVisibility to set
     */
    public void setEditDeviceGroupVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_editDeviceGroupVisibility;
        this.m_editDeviceGroupVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_DEVICEGROUP_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_deleteDeviceGroupVisibility
     */
    public Boolean getDeleteDeviceGroupVisibility() {
        return m_deleteDeviceGroupVisibility;
    }

    /**
     * @param val the m_deleteDeviceGroupVisibility to set
     */
    public void setDeleteDeviceGroupVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_deleteDeviceGroupVisibility;
        this.m_deleteDeviceGroupVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_DEVICEGROUP_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_addDeviceGroupDetailVisibility
     */
    public Boolean getAddDeviceGroupDetailVisibility() {
        return m_addDeviceGroupDetailVisibility;
    }

    /**
     * @param val the m_addDeviceGroupDetailVisibility to set
     */
    public void setAddDeviceGroupDetailVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_addDeviceGroupDetailVisibility;
        this.m_addDeviceGroupDetailVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_DEVICEGROUPDETAIL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_editDeviceGroupDetailVisibility
     */
    public Boolean getEditDeviceGroupDetailVisibility() {
        return m_editDeviceGroupDetailVisibility;
    }

    /**
     * @param val the m_editDeviceGroupDetailVisibility to set
     */
    public void setEditDeviceGroupDetailVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_editDeviceGroupDetailVisibility;
        this.m_editDeviceGroupDetailVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_DEVICEGROUPDETAIL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_deleteDeviceGroupDetailVisibility
     */
    public Boolean getDeleteDeviceGroupDetailVisibility() {
        return m_deleteDeviceGroupDetailVisibility;
    }

    /**
     * @param m_deleteDeviceGroupDetailVisibility the m_deleteDeviceGroupDetailVisibility to set
     */
    public void setDeleteDeviceGroupDetailVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_deleteDeviceGroupDetailVisibility;
        this.m_deleteDeviceGroupDetailVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_DEVICEGROUPDETAIL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_addNewDutVisibility
     */
    public Boolean getAddNewDutVisibility() {
        return m_addNewDutVisibility;
    }

    /**
     * @param val the m_addNewDutVisibility to set
     */
    public void setAddNewDutVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_addNewDutVisibility;
        this.m_addNewDutVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_DUT_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_editDutVisibility
     */
    public Boolean getEditDutVisibility() {
        return m_editDutVisibility;
    }

    /**
     * @param val the m_editDutVisibility to set
     */
    public void setEditDutVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_editDutVisibility;
        this.m_editDutVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_DUT_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_deleteDutVisibility
     */
    public Boolean getDeleteDutVisibility() {
        return m_deleteDutVisibility;
    }

    /**
     * @param val the m_deleteDutVisibility to set
     */
    public void setDeleteDutVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_deleteDutVisibility;
        this.m_deleteDutVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_DUT_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_addNewNetworkAdapterVisibility
     */
    public Boolean getAddNewNetworkAdapterVisibility() {
        return m_addNewNetworkAdapterVisibility;
    }

    /**
     * @param val the m_addNewNetworkAdapterVisibility to set
     */
    public void setAddNewNetworkAdapterVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_addNewNetworkAdapterVisibility;
        this.m_addNewNetworkAdapterVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_NETWORKADAPTER_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_editNetworkAdapterVisibility
     */
    public Boolean getEditNetworkAdapterVisibility() {
        return m_editNetworkAdapterVisibility;
    }

    /**
     * @param val the m_editNetworkAdapterVisibility to set
     */
    public void setEditNetworkAdapterVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_editNetworkAdapterVisibility;
        this.m_editNetworkAdapterVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_NETWORKADAPTER_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_deleteNetworkAdapterVisibility
     */
    public Boolean getDeleteNetworkAdapterVisibility() {
        return m_deleteNetworkAdapterVisibility;
    }

    /**
     * @param val the m_deleteNetworkAdapterVisibility to set
     */
    public void setDeleteNetworkAdapterVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_deleteNetworkAdapterVisibility;
        this.m_deleteNetworkAdapterVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_NETWORKADAPTER_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_AddSerialVisibility
     */
    public Boolean getAddSerialVisibility() {
        return m_AddSerialVisibility;
    }

    /**
     * @param val the m_AddSerialVisibility to set
     */
    public void setAddSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_AddSerialVisibility;
        this.m_AddSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_SERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_EditSerialVisibility
     */
    public Boolean getEditSerialVisibility() {
        return m_EditSerialVisibility;
    }

    /**
     * @param val the m_EditSerialVisibility to set
     */
    public void setEditSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_EditSerialVisibility;
        this.m_EditSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_SERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_DeleteSerialVisibility
     */
    public Boolean getDeleteSerialVisibility() {
        return m_DeleteSerialVisibility;
    }

    /**
     * @param val the m_DeleteSerialVisibility to set
     */
    public void setDeleteSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_DeleteSerialVisibility;
        this.m_DeleteSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_SERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_AddDirectSerialVisibility
     */
    public Boolean getAddDirectSerialVisibility() {
        return m_AddDirectSerialVisibility;
    }

    /**
     * @param val the m_AddDirectSerialVisibility to set
     */
    public void setAddDirectSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_AddDirectSerialVisibility;
        this.m_AddDirectSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_DIRECTSERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_EditDirectSerialVisibility
     */
    public Boolean getEditDirectSerialVisibility() {
        return m_EditDirectSerialVisibility;
    }

    /**
     * @param val the m_EditDirectSerialVisibility to set
     */
    public void setEditDirectSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_EditDirectSerialVisibility;
        this.m_EditDirectSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_DIRECTSERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_DeleteDirectSerialVisibility
     */
    public Boolean getDeleteDirectSerialVisibility() {
        return m_DeleteDirectSerialVisibility;
    }

    /**
     * @param val the m_DeleteDirectSerialVisibility to set
     */
    public void setDeleteDirectSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_DeleteDirectSerialVisibility;
        this.m_DeleteDirectSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_DIRECTSERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_AddNetworkSerialVisibility
     */
    public Boolean getAddNetworkSerialVisibility() {
        return m_AddNetworkSerialVisibility;
    }

    /**
     * @param val the m_AddNetworkSerialVisibility to set
     */
    public void setAddNetworkSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_AddNetworkSerialVisibility;
        this.m_AddNetworkSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_ADD_NETWORKSERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_EditNetworkSerialVisibility
     */
    public Boolean getEditNetworkSerialVisibility() {
        return m_EditNetworkSerialVisibility;
    }

    /**
     * @param val the m_EditNetworkSerialVisibility to set
     */
    public void setEditNetworkSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_EditNetworkSerialVisibility;
        this.m_EditNetworkSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_EDIT_NETWORKSERIAL_VISIBILITY,
                oldVal,
                val);
    }

    /**
     * @return the m_DeleteNetworkSerialVisibility
     */
    public Boolean getDeleteNetworkSerialVisibility() {
        return m_DeleteNetworkSerialVisibility;
    }

    /**
     * @param val the m_DeleteNetworkSerialVisibility to set
     */
    public void setDeleteNetworkSerialVisibility(Boolean val) {
        if (val == null) {
            return;
        }
        Boolean oldVal = m_DeleteNetworkSerialVisibility;
        this.m_DeleteNetworkSerialVisibility = val;
        firePropertyChange(
                TbedPopupController.POPUP_MENU_DELETE_NETWORKSERIAL_VISIBILITY,
                oldVal,
                val);
    }
}
